# -*- coding: utf-8 -*-

class BaseConfig(object):
    SECRET_KEY = 'YEK TSET'


class DevelopmentConfig(BaseConfig):
    INSTALLED_BLUEPRINTS = [
        'ins:ins'
    ]

    MONGODB_URI = 'mongodb://192.168.64.1:27017'
    MONGODB_DB = 'instagram'

    GRAPH_PAGE_LENGTH = 15

    WXAPP_ID = 'wx171c2e7fe69df2c0'
    WXAPP_SECRET = '42f198b2a428b2aa65e8527852a72712'

    # SESSION_EXPIRED = 60 * 60 * 24 * 7
    SESSION_EXPIRED = 60

    REDIS_HOST = '127.0.0.1'
    REDIS_PORT = '16666'
    REDIS_DB = 10
    REDIS_PASSWORD = None

    AUTH_USER_CLASS = 'ins.models:User'

    SUBSCRIBE_TO_POLL_THRESHOLD = 60 * 20


config = {
    'dev': DevelopmentConfig,
}